<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var arr=[1,2,3,4,5,6,7,8,9,10]
    for(i=0;i<arr.length;i++){
        console.log(i);  
    }
    var arr1=[1,2,3,4,5]
    for(i=0;i<arr1.length;i++){
        arr[i]+=1;
        document.write(arr[i])
    }
    document.write("<br>")
    var arr2=['陈平安','宁姚','阿良','左右','齐静春']
    for(i=0;i<arr2.length;i++){
        document.write("Hello,"+arr2[i])
    }
    document.write("<br>")

    var arr3=[2,4,6,8,10]
    var sum=0;
    for(i=0;i<arr3.length;i++){
        sum+=arr3[i]
    }
    document.write(sum)
    document.write("<br>")
    var arr4=[3,5,-2,7,1,-8]
    var max=arr[0];
    for(i=0;i<arr4.length;i++){
        if(arr4[i]>max){
            max=arr4[i]
        }
    }
    document.write(max)
</script>